import { createRouter,createWebHistory } from "vue-router";
import HomePage from "../components/HomePage"
import MyPage from "../components/MyPage"
import SetPage from "../components/SetPage"
import WorkPage from "../components/WorkPage"
import LoginPage from "../components/LoginPage"

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes:[
        {
            path: '/',
            redirect: '/home'
        },
        {
            name: 'home',
            path: '/home',
            component: HomePage
        },
        {
            name: 'myPage',
            path: '/myPage',
            component: MyPage
        },
        {
            name: 'setPage',
            path: '/setPage',
            component: SetPage
        },
        {
            name: 'workPage',
            path: '/workPage',
            component: WorkPage
        },
        {
            name: 'loginPage',
            path: '/loginPage',
            component: LoginPage
        },
    ]
})
export default router
